import axios from '@/libs/api.request'

export const matchList = (params) => {
  return axios.request({
    url: '/small/match/listPage',
    method: 'post',
    data: params
  })
}
export const getOne = (params) => {
  return axios.request({
    url: '/small/match/getOne',
    method: 'post',
    data: params
  })
}
export const addOne = (params) => {
  return axios.request({
    url: '/small/match/addOrUpdateMatch',
    method: 'post',
    data: params
  })
}
export const updateIsSue = (params) => {
  return axios.request({
    url: '/small/match/updateIsSue',
    method: 'put',
    data: params
  })
}
export const queryListByMatchId = (params) => {
  return axios.request({
    url: '/small/enroll/queryListByMatchId',
    method: 'post',
    data: params
  })
}
export const endEnrollStatus = (params) => {
  return axios.request({
    url: '/small/match/endEnrollStatus',
    method: 'post',
    data: params
  })
}
export const getOneById = (params) => {
  return axios.request({
    url: `/small/enroll/getOneById/${params}`,
    method: 'get',
    data: params
  })
}
export const delMatch = (params) => {
  return axios.request({
    url: `/small/match/delMatch/${params}`,
    method: 'delete',
    data: params
  })
}
export const updatePayStatus = (params) => {
  return axios.request({
    url: `/small/enroll/updatePayStatus`,
    method: 'post',
    data: params
  })
}
export const updateRetreatStatus = (params) => {
  return axios.request({
    url: `/small/enroll/updateRetreatStatus`,
    method: 'post',
    data: params
  })
}
export const updateBanStatus = (params) => {
  return axios.request({
    url: `/small/enroll/updateBanStatus`,
    method: 'post',
    data: params
  })
}
export const exportEnrollExcel = (params) => {
  return axios.request({
    url: `/small/enroll/exportEnrollExcel`,
    method: 'post',
    data: params
  })
}
export const matchPdf = (params) => {
  return axios.request({
    url: `/small/match/matchPdf`,
    method: 'post',
    data: params
  })
}
export const updatePayUrl = (params) => {
  return axios.request({
    url: `/small/enroll/updatePayUrl`,
    method: 'post',
    data: params
  })
}
export const getEvents = (params) => {
  return axios.request({
    url: `/small/match/getEvents`,
    method: 'post',
    data: params
  })
}
export const dict = (params) => {
  return axios.request({
    url: `/game/match/dict`,
    method: 'POST',
    data: params
  })
}
export const approvalEnrollStaff = (params) => {
  return axios.request({
    url: `/small/enroll/approvalEnrollStaff`,
    method: 'POST',
    data: params
  })
}

export const addTravel = (params) => {
  return axios.request({
    url: `/small/travel/addTravel`,
    method: 'POST',
    data: params
  })
}
export const queryForm = (params) => {
  return axios.request({
    url: `/small/travel/queryList`,
    method: 'POST',
    data: params
  })
}
export const checkTable = (params) => {
  return axios.request({
    url: `/small/travel/checkTable`,
    method: 'POST',
    data: params
  })
}
export const addGroup = (params) => {
  return axios.request({
    url: `/small/travel/addGroup`,
    method: 'POST',
    data: params
  })
}
export const editTravel = (params) => {
  return axios.request({
    url: `/small/travel/editTravel`,
    method: 'POST',
    data: params
  })
}
export const deleteGroup = (id) => {
  return axios.request({
    url: `/small/travel/deleteGroup/${id}`,
    method: 'GET',
  })
}
export const excel = (params) => {
  return axios.request({
    url: `/small/travel/excel`,
    method: 'POST',
    data: params
  })
}

